<?php
ob_start();
session_start();

function __autoload($class_name) {
include './'.$class_name . '.php';
}

$count = NULL;
	if(!isset($_SESSION['cart'])){
		$count = 0;	
	}else{
		$cart = $_SESSION['cart'];
		$count = $cart -> countOrder();
	}
echo$count;
ob_end_flush();
?>
